home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / patches / gluemachine / gluemachinehc11.doc < prev    next >
Encoding:
Text File  |  1995-12-15  |  10.1 KB  |  333 lines

  1.  
  2. ************************************************************
  3. *                            \|/                           *
  4. *                            @ @                           *
  5. *------------------------ooO-(_)-Ooo-----------------------*
  6. *                                                          *
  7. *                      GluemachineHC11                     *
  8. *                                                          *
  9. *----------------------------------------------------------*
  10. *                                                          *
  11. *       a simple controller based on Motorola 68HC11       *
  12. *          © 1995 by Lars 'Gluemaster' Malmborg            *
  13. *                                                          *
  14. *                          FreeWare                        *
  15. *                                                          *
  16. ************************************************************
  17.  
  18.  
  19.  
  20.                       Introduction 
  21.                       Features     
  22.                       Construction 
  23.                       Software     
  24.                       Bugs         
  25.                       Author       
  26.                       History      
  27.                       Future       
  28.  
  29.  
  30. Introduction
  31. ------------
  32.  
  33. This is a hardware project to build a simple yet usable
  34. single-chip computer. The GluemachineHC11 is not at all as
  35. complex as the other similar controllers around (MiniBoard,
  36. HandyBoard, F1-Board, ...) and is therefor cheaper and
  37. easier to build. It is contained on a 85x85 mm PCB.
  38. The trade off is most significantly the drivers for step
  39. motors. My motivation for this project was to make a small
  40. tool to take with me that could do some neat flashing and
  41. such. Some of the things I've done so far is supplied here.
  42.  
  43. Further information on programming the 68HC11 can be found
  44. in Motorola's books on the issue and from the 'Introduction
  45. to 6811 Programming' by Fred G. Martin, which I really
  46. recomend you to read. The latter can be found via anonymous
  47. ftp on 'cherupakha.media.mit.edu', where you also can find
  48. loads of other related stuff concerning 68HC11.
  49.  
  50.  
  51.  
  52. Features
  53. --------
  54.  
  55.  * Simple to build. Single-sided PCB.
  56.  
  57.  * Easy to use. On board RS-232 interface. The processor
  58.    has RAM and EEPROM built in and is programmable directly
  59.    through the serial port. (Only an assembler and a simple
  60.    download program is necessary.)
  61.  
  62.  * All the goodies in the Motorola 68HC11 right at your
  63.    fingertips. A/D converter, digital I/O, timers, edge
  64.    counters, SPI and strobed parallel ports.
  65.  
  66.  
  67.  
  68. Building
  69. --------
  70.  
  71. N.B. I assume you have the knowledge in all steps involved
  72. in making the board.
  73. Therefor I won't get into any details at all.
  74.  
  75. First of all you will have to make the PCB.
  76. There is a PostScript file included called 'PCB.ps' which
  77. is what you need to make the mask for the PCB.
  78.  
  79. Then you will have to get the Components.
  80.  
  81. Solder it together and connect it to the serial port of
  82. your host computer.
  83.  
  84. The pins of the ports on the board are arranged as follows:
  85.  
  86.    Port A,B,C            Port D                Port E
  87.  
  88.    -------                                     -------
  89.   |       |                                   |       |
  90.   |D6  D7 |                                   |D0  D4 |
  91.   |       |              -------              |       |
  92.   |D4  D5 |             |D4  D5 |             |D1  D5 |
  93.   |       |             |       |             |       |
  94.   |D2  D3 |             |D2  D3 |             |D2  D6 |
  95.   |       |             |       |             |       |
  96.   |D0  D1 |             |D0  D1 |             |D3  D7 |
  97.   |       |             |       |             |       |
  98.   |G   V  |             |G   V  |             |G   V  |
  99.   |       |             |       |             |       |
  100.    -------               -------               -------
  101.  
  102.  
  103.  
  104.   Bus extender          RS-232                Analog Ref.
  105.  
  106.    -------               -------               -------
  107.   |       |             |       |             |       |
  108.   |G   E  |             |G   RxD|             |G   VRL|
  109.   |       |             |       |             |       |
  110.   |R/W AS |             |G   TxD|             |V   VRH|
  111.   |       |             |       |             |       |
  112.    -------               -------               -------
  113.  
  114. This is all summarized on a small sticker which fits on the
  115. board between the processor and PortB - PortE. It is an
  116. EncapsulatedPostScript file called 'Sticker.eps'.
  117.  
  118. Remeber to mark where the G and V is on the connector so
  119. you won't screw things up by connecting the wrong way.
  120.  
  121.  
  122.  
  123. Components
  124. ----------
  125.  
  126. I live in Sweden and order from ELFA. I have supplied their order
  127. number where such is motivated.
  128.  
  129. Article    Component                        Amount
  130.  
  131.             Resistor 10kOhm..................5
  132.             Resistor 1-20MOhm................1
  133.             Capacitor 25pF...................2
  134.             Capacitor 220mF (Polyester)......1
  135.             Capacitor 1uF (Polyester)........1
  136.             Capacitor 4.7uF..................2
  137.             Capacitor 10uF...................3
  138.  74-504-48  X-tal 8MHz.......................1
  139.  42-054-07  Battery connector 1.3mm..........1
  140.  35-655-04  Button switch (Reset button).....1
  141.  35-214-08  Switch (Mode switches)...........2
  142.             2-pin DIP-switch.................1
  143.  43-708-70  Connector array 2x20 (Cutable)...2
  144.  73-023-26  MAX232CPE (RS232 converter)......1
  145.  73-090-40  7805 (Voltage regulator).........1
  146.             MC68HC11E2FN (Any 52-pin PLCC)...1
  147.  
  148.  
  149. You will also need som other stuff to get going...
  150.  
  151. * All the stuff to make the PCB. These depend on what method you
  152.   choose. Single sided is enough.
  153. * Some connectors to connect to the board.
  154. * (25-pin) connector to connect the board with your computer.
  155. * ...
  156.  
  157.  
  158. ELFA (Sweden+rest of the world):
  159. Orders     +46-8-735 35 35
  160. Fax orders +46-8-730 30 88
  161. Telex      104 79 ELFA S   (They really ARE reachable! :)
  162. Mail       ELFA
  163.            171 17 SOLNA
  164.            SWEDEN
  165.  
  166. ELFA (Norway):
  167. Orders     800-101 35
  168. Fax orders 800-101 36
  169.  
  170.  
  171. Computer
  172. --------
  173.  
  174. You need a host computer with an RS-232 port to program the
  175. board. Furthermore will you need an assembler and a simple
  176. download program.
  177.  
  178.  
  179. Assembler
  180. ---------
  181.  
  182. There are several ways to create code for the 68HC11.
  183. For the Amiga I must recommend ADev11 by Stan Burton.
  184. It is a complete development environment for the 68HC11.
  185.  
  186. Another environment for the Amiga is the HC11Dev by Richard
  187. Karlsson, which contains HitAsm and HitMon11. It is an
  188. assembler and a kind of on-line debugger.
  189.  
  190. Furthermore there is Motorola's AS11 ported to Amiga by T.
  191. Grover.
  192.  
  193. For PC-clones there are, among others, AS11, and the same
  194. goes for UNIX-clones and MacDonald's I believe.
  195.  
  196. You will have to see for yourself what you can find for
  197. your platform. Look for 'Motorola', 'HC11' or '6811'.
  198.  
  199.  
  200. Download
  201. --------
  202.  
  203. The downloader in ADev11 environment is called 'HCLoad'.
  204. Motorola's own is called dlm11 and is ported to Amiga by Henner Bartels.
  205.  
  206.  
  207. ADev11
  208. ------
  209.  
  210. ADev11 is a complete development environment containing
  211. C compiler, assembler, linker, librarian, simulator and
  212. downloader for the Amiga. It is maintained and partly
  213. programmed by Stan Burton, with assistance and cooperation
  214. of a number of people and it is freely redistributable.
  215. Just get it! Got it? :)
  216.  
  217.  
  218. Software
  219. --------
  220.  
  221. Here is a little test program which reads the serial port
  222. and writes out the recieved character on a LCD screen on
  223. Port B and write the recieved data on the serial line five
  224. times.
  225. The program uses two link libraries made by me. One
  226. includes setup, read and write of the serial port and the
  227. other is an interface to the LCD display. The LCD display
  228. runs in 4-bit mode with the 68HC11 to avoid hogging more
  229. than one port. All this is done in the ADev11
  230. environment and should be quite easy to port to any other
  231. assembler you might prefer, or at least state an example
  232. of what it might look like when programming assembler for
  233. the 68HC11.
  234.  
  235.  
  236.                       Test      
  237.                       SerLib    
  238.                       LCDLib    
  239.  
  240.  
  241. Include files used in Test:
  242.  
  243.                       hc11reg.i 
  244.                       Ser.i     
  245.                       LCD.i     
  246.  
  247.  
  248. GluemachineHC11
  249. ---------------
  250.  
  251. The GluemachineHC11's main part is a Motorola 68HC11.
  252. The one I've used is 68HC11E2 which contains 2kbytes EEPROM
  253. and 256 bytes of RAM. The Board is quite handy for most
  254. small projects. The picture contained is of a Board of v1.0,
  255. a battery and a 7-segment display, with suitable driver
  256. electronics, fitted on Port B.
  257. Other expansions are in production right now, so if there
  258. is good response from this release, it might also see the
  259. light.
  260.  
  261.  
  262. Future
  263. ------
  264.  
  265. Please let me know if you are interested in expansions for
  266. this piece of hardware. The future is only up to you. If I
  267. won't get any response, I will drop public availability of
  268. further developments.
  269.  
  270. Right now I have:
  271.  * a simple 7-segment card. (As seen on the Board.)
  272.  * a soldering socket for analog input.
  273.  * a MIDI interface. (IN, OUT, THRU)
  274.  * a Bus extender. (To get the full bus for further
  275.    expansions of addressable periphals such as more RAM,
  276.    EPROM, sound chips and so on.)
  277.  
  278. Planned in the (near) future is:
  279.  * IR sensor and transmitter.
  280.  * RAM, EPROM and Sound generation through 6581 (SID) on
  281.    the expanded bus.
  282.  * Unwired communication for RC boats. (Not NEAR future but
  283.    nevertheless! :)
  284.  
  285.  
  286. Bugs
  287. ----
  288.  
  289. No known bugs...
  290. The circuit has been tested fairly well without any sign of
  291. any fault so there doesn't seem to be anything seriously
  292. wrong.
  293. I take no responsability what so ever for your equipment,
  294. healt or whatever!
  295.  
  296.  
  297. Author
  298. ------
  299.  
  300. The GluemachineHC11 is designed by Lars Malmborg using an
  301. Amiga 4000. I would really like (make that 'demand' :) to
  302. hear your comments concerning this piece of hardware and
  303. software.
  304.  
  305. I can be reached at:
  306.  
  307.   email: glue@df.lth.se
  308.          dat93lma@ludat.lth.se
  309.  
  310.          or
  311.  
  312.   snail: Lars Malmborg
  313.          Nobelvägen 147C
  314.          212 15 MALMÖ
  315.          SWEDEN
  316.  
  317. I can also be found on www:
  318.          http://www.ludat.lth.se/~dat93lma
  319.  
  320.  
  321. History
  322. -------
  323.  
  324. v1.0 - No public realease. Only for my own testing testing.
  325.  
  326. v1.1 - This text.
  327.  
  328.      - Added a switch to disconnect the Rx and Tx from
  329.        MAX232 so it won't interfere with the signal on the
  330.        PortD connector.
  331.  
  332.      - Cutified the layout for a nicer appearance! :)
  333.